// see http://vuejs-templates.github.io/webpack for documentation.
var path = require('path')



//瑞德 'http://10.10.38.50:8080',
//测试 'http://wxparking.telchina.cn',
//正式 http://pay.telchina.cn

var  baseUrl='http://pay.telchina.cn';
// 章丘Appid
// 正式 wx064f4209172af601
// 测试 wxa69f20954ceef2ca
var  zqAppid='wx064f4209172af601';
// var  jnUrl='';
// var  jnAppid='wx7305253d6ea42110';
module.exports = {
	baseUrl:baseUrl,
	zqAppid:zqAppid,	
	build: {
		env: require('./prod.env'),
		index: path.resolve(__dirname, '../dist/index.html'),
		assetsRoot: path.resolve(__dirname, '../dist'),
		assetsSubDirectory: 'static',
		assetsPublicPath: '/',
		productionSourceMap: false,
		// Gzip off by default as many popular static hosts such as
		// Surge or Netlify already gzip all static assets for you.
		// Before setting to `true`, make sure to:
		// npm install --save-dev compression-webpack-plugin
		productionGzip: false,
		productionGzipExtensions: ['js', 'css'],
		port: 9000,
        	sellUrl: 'http://127.0.0.1',
        	openidUrl: '',
        	wechatPayUrl: 'http://127.0.0.1'
	},
	dev: {
		env: require('./dev.env'),
		port: 8088,
		assetsSubDirectory: 'static',
		assetsPublicPath: '/',
		// proxyTable: {
  //     '/service': {
  //       target: 'http://wxparking.telchina.cn',
  //       changeOrigin: true,
  //       pathRewrite: {
  //         '^/service': '/service'
  //       }
  //     }
  //   },
  		proxyTable: {
      '/service': {
        target:baseUrl,
        changeOrigin: true,
        pathRewrite: {
          '^/service': '/service'
        	}
      	  }
    	},
		// CSS Sourcemaps off by default because relative paths are "buggy"
		// with this option, according to the CSS-Loader README
		// (https://github.com/webpack/css-loader#sourcemaps)
		// In our experience, they generally work as expected,
		// just be aware of this issue when enabling this option.
		cssSourceMap: false,
		sellUrl: 'http://127.0.0.1',
		openidUrl: 'http://127.0.0.1',
		wechatPayUrl: 'http://127.0.0.1'
	}
}
